package com.itheima.d5_lock;

/**
 * 取钱测试类
 */
public class ThreadDemo1 {
    public static void main(String[] args) {
        //1.创建账户对象
        Account a = new Account("ICBC-001", 100000);
        //2.创建取钱线程对象
        DrawThread t1 = new DrawThread(a, "宁姚");
        DrawThread t2 = new DrawThread(a, "陈平安");

        t1.start();
        t2.start();
    }
}
